import { requestInit } from '@/utils/axios'

const config = {
  baseURL: import.meta.env.VITE_APP_BASE_API,
}
let request = requestInit.init(config)
//模拟登录
export function getUserInfo() {
  return request({
    url: `/deepsearch-api/login.html`,
    method: 'GET',
    params: { org: 2 },
  })
}
//获取历史记录
export function getHistory(data) {
  return request({
    url: `/deepsearch-api/cnki/ai/deep/history.html`,
    method: 'POST',
    data,
  })
}
//获取搜索结果
